#!/usr/bin/env node

const run = require('./lib/')
const fs = require('fs')
const yParser = require('yargs-parser')
const path = require('path')
// print version and @local
const args = yParser(process.argv.slice(2))
if (args.v || args.version) {
    console.log(require('./package').version)
    if (fs.existsSync(path.join(__dirname, '.local'))) {
        console.log(chalk.cyan('@local'))
    }
    process.exit(0)
}

run()
